package com.hzy.chinese.jchess.ui.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.TextView;

import com.blankj.utilcode.util.AppUtils;
import com.hzy.chinese.jchess.R;
import com.hzy.chinese.jchess.ui.activity.base.AbstractActionBarActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by tangbull on 2018/3/27.
 */

public class AboutActivity extends AbstractActionBarActivity {

    @BindView(R.id.version_name)
    TextView mVersionName;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ButterKnife.bind(this);
        setupVersionInfo();
    }

    private void setupVersionInfo() {
        String versionName = AppUtils.getAppVersionName();
        mVersionName.setText(versionName);
    }


    @Override
    protected int getlayoutResId() {
        return R.layout.activity_about;
    }


}
